package com.shopping.service;

import com.github.pagehelper.PageInfo;
import com.shopping.common.ServerResponse;
import com.shopping.pojo.Product;
import com.shopping.vo.ProductDetailVo;
import com.shopping.vo.ProductListVo;

public interface IProductService {
    ServerResponse saveOrupdateProduct(Product product);
    ServerResponse<String>setSaleStatus(Integer productId,Integer status);
    ServerResponse<ProductDetailVo>manageProductDetail(Integer productId);
    ServerResponse getProductList(int pageNum,int pageSize);
    ServerResponse<PageInfo> searchProduct(String productName, Integer productId, int pageNum, int pageSize);
    ServerResponse<ProductDetailVo> getProductDetail(Integer productId);
    ServerResponse<PageInfo> getProductByKeywordCategory(String keyword,Integer categoryId,
                                                         Integer pageNum,Integer pageSize,
                                                         String orderBy);
}
